package com.itheima.wallet.dao;


import com.itheima.wallet.model.Trade;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TradeMapper {

    String selectTradeByAccountId = "select * from tb_trade where account_id = #{account_id}";

    /**
     * 根据账户id查询交易记录
     * @param accountId
     * @return
     */
    @Select(value = selectTradeByAccountId)
    List<Trade> selectTradeByAccountId(Long accountId);


}
